<!DOCTYPE html>

<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>会员列表</title>
		<script src="/static/js/jquery-1.9.1.min.js"></script>
        <script src="/static/bootstrap.modal/bootstrap.js"></script>
        <script src="/static/js/base.js"></script>
        <script src="/static/js/avalon.js"></script>
        <script src="/static/js/eqx.js"></script>
        <script src="/static/js/goods/jquery.colorbox-min.js"></script>
        <script src="/static/js/goods/zzsc.js"></script>
		
		
        <link media="all" href="/static/bootstrap.modal/bootstrap.min.css" rel="stylesheet">
        <link media="all" href="/static/css/main.css" rel="stylesheet">
        <link media="all" href="/static/css/base.hy.css" rel="stylesheet">
        <link media="all" href="/static/css/goods.css" rel="stylesheet">
		
		<style type="text/css">
			  .list-content img{margin-right: 8px}
	.check{cursor:pointer}
	table{width: :100%;}
		</style>

		
	</head>
<body>

<div class="box" ms-controller="table">
    <a href="javascript:;" ms-click="login()">登录</a>
  <input type="text" ms-duplex="data.nickname">
  <a href="javascript:;" ms-click="setNickname()">修改</a>
<a href="javascript:;" ms-click="center()">主页</a>
<a href="javascript:;" ms-click="saveGoods()">新增商品</a>
</div>
<script type="text/javascript"> 
	var vm = avalon.define({
		$id : "table",
    data:{nickname:''},
    getList: function(){
			$.post('/user/register',{phone:13622293045,password:"46asd",againPassword:"46asd"}, function(json) {
  			
		  },'json');
		},
    login: function(){
			$.post('/user/login',{phone:13622293045,password:"46asd"}, function(json) {
  			vm.center()
		  },'json');
		},
    center: function(){
			$.post('/user/center',{}, function(json) {
  			
		  },'json');
		},
    setNickname:function(){
      $.post('/user/setNickname',{nickname:vm.data.nickname}, function(json) {
  			
		  },'json');
    },
    saveGoods:function(){
      $.post('/goods/add',{}, function(json) {
  			
		  },'json');
    }
  
	});
vm.getList()
</script>
</body>
</html>
